package com.jiyun.fegin;

import com.github.pagehelper.PageInfo;
import com.jiyun.common.model.Course;
import com.jiyun.common.model.CourseMc;
import com.jiyun.common.model.CourseVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @projectName: 2210A-project1
 * @package: com.jiyun.fegin
 * @className: CourseFegin
 * @author: 耿嘉军
 * @date: 2023/8/23 17:32
 * @version: 1.0
 */
@FeignClient(value = "day06course")
public interface CourseFegin {

    @RequestMapping("/course/courseList")
    public List<Course> courseList();

    @RequestMapping("/course/updateDian")
    public Course updateDian(@RequestParam(value = "id") Integer id);

    @RequestMapping("/course/zuixinCourse")
    public List<Course> zuixinCourse();

    @RequestMapping("/course/courseXiangQ")
    public PageInfo<CourseVO> courseXiangQ(@RequestBody CourseMc mc);

}
